package com.yupi.springbootinit.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yupi.springbootinit.model.entity.Chart;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author asus
 * @description 针对表【chart(图表信息表)】的数据库操作Mapper
 * @createDate 2023-07-26 15:42:16
 */
public interface ChartMapper extends BaseMapper<Chart> {

    List<Map<String, Object>> queryChartData(String querySql);

    List<Map<String, Object>> queryChartDataById(Long chartId);

    boolean creatTable(@Param("id") Long id, @Param("column1") String column1, @Param("column2") String column2);

    boolean insertData(@Param("id") Long id,@Param("data1") String data1, @Param("data2") String data2);

    boolean retryIncrease(@Param("id") Long id);

    List<Long> getChartListWithRetryNumber();
}




